<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\common\validate;

/**
 * Description of LoginValidate
 *
 * @author DevPHP
 * @version 2018-4-10
 */
class LoginWithSmscodeValidate extends \think\Validate {

    protected $batch = false;
    protected $rule = [
        'login_id' => 'require',
        'login_id' => 'mobile',
        'smscode' => 'integer|length:4',
    ];
    protected $message = [
        'login_id.require' => '手机号未填写',
        'login_id.mobile' => '手机号格式无效',
        'smscode.integer' => '短信验证码内容无效',
        'smscode.length' => '短信验证码长度无效',
    ];

}
